/****************************************************************************************
*            . .. .                                                                     *
*                    ...                                                                *
*                       .":                                                             *
*   .                      u                                                            *
* ..     .:uxkkOkkx=.      "k'                                                          *
*.     "k00O0ko==uk00x'     OO.                       IBE-CAE                           *
*'   .xK0O00: 'xx" x0Ku    .O0:     Copyright (C) by Internet Based Engineering         *
*   .O0OO00= oKOk:"O0O'    :00=                 All rights reserved.                    *
*.  =0OOO00" =OOO0Oo'     =0OO:                      www.ibe.cn                         *
*.  u0OOOO0O'          .o00OOO.                                                         *
* . :KOOOOO00xu=:::=uok00OOOO"                                                          *
*   .x00OOOOOO0000000OOOOOOx.                                                           *
*    .u00OOOOOOOOOOOOOOOOO=                                                             *
*      .ukOOOOOOOOOOOOku'                                                               *
*          .'::==::'.                                                                   *
****************************************************************************************/

#ifndef IBE_CONVERT_BASE_H_
#define IBE_CONVERT_BASE_H_

#include <string>

#include "IBE_Object.h"

namespace ibe_common
{
    /**
    * @class IBE_ConvertBase
    * @brief 转换文件基础类
    * @author liupeng
    */
    class IBE_COMMON_EXPORT IBE_ConvertBase : public ibe_common::IBE_Object
    {
    public:
        explicit IBE_ConvertBase();
        ~IBE_ConvertBase();

        IBE_TypeMacro( ibe_common, IBE_ConvertBase, ibe_common, IBE_Object );
        
        //@{
        /**
        * @brief 设置文件输入路径
        *
        * @param fileName 文件输入路径
        */
        virtual void SetInputFileName(const char* str);
        virtual const char* GetInputFileName()
        {
            return this->inputFileName_.c_str();
        }
        //@}

        //@{
        /**
        * @brief 设置文件输出路径
        *
        * @param fileName 文件输出路径
        */
        virtual void SetOutputFileName( const char* str );
        virtual const char* GetOutputFileName()
        {
            return this->outputFileName_.c_str();
        }
        //@}

        virtual void Update();

    protected:
        //! 输入文件路径
        std::string inputFileName_;
        //! 输出文件路径
        std::string outputFileName_;

    private:
        IBE_ConvertBase( const IBE_ConvertBase& ) = delete;
        IBE_ConvertBase& operator=( const IBE_ConvertBase& ) = delete;
    };
} // namespace ibe_common

#endif // IBE_CONVERT_BASE_H_